package com.dotflat.fin.PO;

import com.dotflat.rest.PO.AreableObjectBasePO;
import com.dotflat.rest.domain.AreableObjectBase;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import java.util.Date;

/**
 *  账单对象
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class FinPlanPO extends AreableObjectBasePO {
    // 计划名称 计划类型 日期 金额  状态 说明
    @ApiModelProperty("计划名称")
    private String name;

    @ApiModelProperty("计划类型, 0:日常  1:综合")
    private Integer category;

    @ApiModelProperty("开始日期")
    private Date beginDate;

    @ApiModelProperty("结束日期")
    private Date endDate;

    @ApiModelProperty("账单标题")
    private String title;

    @ApiModelProperty("账单号基准, 支付账单的订单号以这个为基准")
    private String orderSnBase;

    @ApiModelProperty("作废")
    private Boolean cancelled;
}
